<include file="Common:header" />
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        权限管理
        <small><a href="{$listUrl}">{$actionTitle}</a></small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="/"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active">权限管理</li>
        <li class="active"><a href="{$listUrl}">{$actionTitle}</a></li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content">
      <div class="box">
        <form class="form-horizontal" method="post">
          <div class="box-body">
            <div class="form-group">
              <label for="inputEmail3" class="col-sm-2 control-label"><ins class="btn btn-danger btn-sm">选择上级菜单:</ins></label>

              <div class="col-sm-10">
                <select name="pid" class="form-control">
                  <option value="0">———— 顶级菜单 ————</option>
                  {$list}
                </select>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">Icon:</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" placeholder="bootstrap 提供的 icon" name="iconName" value="{$data['icon_name']}">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label"><ins class="btn btn-danger btn-sm">菜单名称:</ins></label>
              <div class="col-sm-10">
                <input type="text" class="form-control" placeholder="菜单名称, 最好控制在10个汉字之内 | 此项为必填字段" name="name" value="{$data['name']}">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">排序:</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" placeholder="填写0-99999的数字, 数字越大越靠前, 如果不填写则认为是0" name="sort" value="{$data['sort']}">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">跳转url:</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" placeholder="跳转url 例如: /Admin/Index/index   | 如果不需要跳转请填写 '#'  或者留空即可" name="url" value="{$data['url']}">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label"><ins class="btn btn-danger btn-sm">是否显示在左侧菜单栏:</ins></label>

              <div class="col-sm-10">
                <select name="isShow" class="form-control">
                  <option value="1" <?php if($data['is_show'] == 1){echo 'selected';}?>> 是 </option>
                  <option value="0" <?php if($data['is_show'] == 0){echo 'selected';}?>> 否 </option>
                </select>
              </div>
            </div>
          </div>
          <!-- /.box-body -->
          <div class="box-footer">
            <div class="form-group">
              <label class="col-sm-2 control-label">
                <a href="{$listUrl}" class="btn btn-default"><span class="fa fa-reply"></span>返回</a>
              </label>
              <label class="control-label">
                <input type="hidden" name="id" value="{$data['id']}">
                <button type="submit" class="btn btn-primary">更新</button>
              </label>
            </div>
          </div>
          <!-- /.box-footer -->
        </form>
      </div>
    </section>
    <!-- /.content -->
  </div>
  <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->
<include file="Common:footer" />
<!-- SlimScroll -->
</body>
</html>
